package net.qhzw.vip.qiyu.controller;


import net.qhzw.vip.qiyu.dto.DispatchDto;
import net.qhzw.vip.qiyu.entity.MaintRpt;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test/dispatch")
public class DispatchController {


    /**
     * 获取派单通知html文本
     * @param model
     * @param maintRpt
     * @param admin
     * @return
     */
    @RequestMapping("/notice")
    public String send(Model model, DispatchDto dispatchDto) {
        model.addAttribute("info", dispatchDto);
        return "dispatchNotice";
    }

    /**
     * 获取派单通知html文本
     * @param model
     * @param maintRpt
     * @param admin
     * @return
     */
    @RequestMapping("/urgentNotice")
    public String urgentSend(Model model, DispatchDto dispatchDto) {
        model.addAttribute("info", dispatchDto);
        return "urgentDispatchNotice";
    }




}
